package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2021-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course_chapter_period")
public class CourseChapterPeriod extends Model<CourseChapterPeriod> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("statusId")
    private Integer statusId;

    private Integer sort;

    @TableField("courseId")
    private Long courseId;

    @TableField("chapterId")
    private Long chapterId;

    @TableField("periodName")
    private String periodName;

    @TableField("periodDesc")
    private String periodDesc;

    @TableField("countStudy")
    private Integer countStudy;

    @TableField("fileUrl")
    private String fileUrl;

    /**
     * 0音频1视频2文档
     */
    @TableField("fileType")
    private Integer fileType;

    @TableField("fileNo")
    private Long fileNo;

    @TableField("fileName")
    private String fileName;

    @TableField("fileSize")
    private String fileSize;


    @TableField("fTime")
    private Integer fTime;


    @TableField("rType")
    private Integer rType;


    @TableField("rCount")
    private Integer rCount;


    @TableField("pContent")
    private String pContent;

    public static final String ID = "id";

    public static final String STATUSID = "statusId";

    public static final String SORT = "sort";

    public static final String COURSEID = "courseId";

    public static final String CHAPTERID = "chapterId";

    public static final String PERIODNAME = "periodName";

    public static final String PERIODDESC = "periodDesc";

    public static final String COUNTSTUDY = "countStudy";

    public static final String FILEURL = "fileUrl";

    public static final String FILETYPE = "fileType";

    public static final String FILENO = "fileNo";

    public static final String FILENAME = "fileName";

    public static final String FILESIZE = "fileSize";

    public static final String FTIME = "fTime";

    public static final String RTYPE = "rType";

    public static final String RCOUNT = "rCount";

    public static final String PCONTENT = "pContent";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
